3.1031 \(\int \frac{1}{x^3 (a+b x^n) (c+d x^n)} \, dx\)

Optimal. Leaf size=95 \[ \frac{d \, _2F_1\left (1,-\frac{2}{n};-\frac{2-n}{n};-\frac{d x^n}{c}\right )}{2 c x^2 (b c-a d)}-\frac{b \, _2F_1\left (1,-\frac{2}{n};-\frac{2-n}{n};-\frac{b x^n}{a}\right )}{2 a x^2 (b c-a d)} \]

[Out]

-(b*Hypergeometric2F1[1, -2/n, -((2 - n)/n), -((b*x^n)/a)])/(2*a*(b*c - a*d)*x^2) + (d*Hypergeometric2F1[1, -2
/n, -((2 - n)/n), -((d*x^n)/c)])/(2*c*(b*c - a*d)*x^2)

________________________________________________________________________________________

Rubi [A]  time = 0.0428551, antiderivative size = 95, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {508, 364} \[ \frac{d \, _2F_1\left (1,-\frac{2}{n};-\frac{2-n}{n};-\frac{d x^n}{c}\right )}{2 c x^2 (b c-a d)}-\frac{b \, _2F_1\left (1,-\frac{2}{n};-\frac{2-n}{n};-\frac{b x^n}{a}\right )}{2 a x^2 (b c-a d)} \]

Antiderivative was successfully verified.

[In]

Int[1/(x^3*(a + b*x^n)*(c + d*x^n)),x]

[Out]

-(b*Hypergeometric2F1[1, -2/n, -((2 - n)/n), -((b*x^n)/a)])/(2*a*(b*c - a*d)*x^2) + (d*Hypergeometric2F1[1, -2
/n, -((2 - n)/n), -((d*x^n)/c)])/(2*c*(b*c - a*d)*x^2)

Rule 508

Int[((e_.)*(x_))^(m_.)/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[b/(b*c - a*d), I
nt[(e*x)^m/(a + b*x^n), x], x] - Dist[d/(b*c - a*d), Int[(e*x)^m/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, e,
n, m}, x] && NeQ[b*c - a*d, 0]

Rule 364

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a^p*(c*x)^(m + 1)*Hypergeometric2F1[-
p, (m + 1)/n, (m + 1)/n + 1, -((b*x^n)/a)])/(c*(m + 1)), x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rubi steps

\begin{align*} \int \frac{1}{x^3 \left (a+b x^n\right ) \left (c+d x^n\right )} \, dx &=\frac{b \int \frac{1}{x^3 \left (a+b x^n\right )} \, dx}{b c-a d}-\frac{d \int \frac{1}{x^3 \left (c+d x^n\right )} \, dx}{b c-a d}\\ &=-\frac{b \, _2F_1\left (1,-\frac{2}{n};-\frac{2-n}{n};-\frac{b x^n}{a}\right )}{2 a (b c-a d) x^2}+\frac{d \, _2F_1\left (1,-\frac{2}{n};-\frac{2-n}{n};-\frac{d x^n}{c}\right )}{2 c (b c-a d) x^2}\\ \end{align*}

Mathematica [A]  time = 0.0519527, size = 77, normalized size = 0.81 \[ \frac{b c \, _2F_1\left (1,-\frac{2}{n};\frac{n-2}{n};-\frac{b x^n}{a}\right )-a d \, _2F_1\left (1,-\frac{2}{n};\frac{n-2}{n};-\frac{d x^n}{c}\right )}{2 a c x^2 (a d-b c)} \]

Antiderivative was successfully verified.

[In]

Integrate[1/(x^3*(a + b*x^n)*(c + d*x^n)),x]

[Out]

(b*c*Hypergeometric2F1[1, -2/n, (-2 + n)/n, -((b*x^n)/a)] - a*d*Hypergeometric2F1[1, -2/n, (-2 + n)/n, -((d*x^
n)/c)])/(2*a*c*(-(b*c) + a*d)*x^2)

________________________________________________________________________________________

Maple [F]  time = 0.079, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{3} \left ( a+b{x}^{n} \right ) \left ( c+d{x}^{n} \right ) }}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^3/(a+b*x^n)/(c+d*x^n),x)

[Out]

int(1/x^3/(a+b*x^n)/(c+d*x^n),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (b x^{n} + a\right )}{\left (d x^{n} + c\right )} x^{3}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(a+b*x^n)/(c+d*x^n),x, algorithm="maxima")

[Out]

integrate(1/((b*x^n + a)*(d*x^n + c)*x^3), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{1}{b d x^{3} x^{2 \, n} +{\left (b c + a d\right )} x^{3} x^{n} + a c x^{3}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(a+b*x^n)/(c+d*x^n),x, algorithm="fricas")

[Out]

integral(1/(b*d*x^3*x^(2*n) + (b*c + a*d)*x^3*x^n + a*c*x^3), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{x^{3} \left (a + b x^{n}\right ) \left (c + d x^{n}\right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**3/(a+b*x**n)/(c+d*x**n),x)

[Out]

Integral(1/(x**3*(a + b*x**n)*(c + d*x**n)), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (b x^{n} + a\right )}{\left (d x^{n} + c\right )} x^{3}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(a+b*x^n)/(c+d*x^n),x, algorithm="giac")

[Out]

integrate(1/((b*x^n + a)*(d*x^n + c)*x^3), x)